4f8b01fe1988d67972f9434af91f214cfda6d090,src/test/java/org/mutabilitydetector/benchmarks/CollectionWithMutableElementTypeToFieldCheckerTest.java,CollectionWithMutableElementTypeToFieldCheckerTest,doesNotRaiseErrorForHardcodedImmutableContainerTypeThatIsGenericWithImmutableType,#,118

Before Change



    @Test
    public void doesNotRaiseErrorForHardcodedImmutableContainerTypeThatIsGenericWithImmutableType() {
        AsmMutabilityChecker checker = new CollectionWithMutableElementTypeToFieldChecker(
                mutableTypeInfo,
                testingVerifierFactory(),
                ImmutableSet.of(fromClass(ImmutableContainer.class)));

        AnalysisResult result = runChecker(checker, HasImmutableContainerOfImmutableType.class);
        assertThat(result, areImmutable());

After Change



    @Test
    public void doesNotRaiseErrorForHardcodedImmutableContainerTypeThatIsGenericWithImmutableType() {
        AsmMutabilityChecker checker = checkerWithHardcodedAsImmutable(ImmutableContainer.class);

        AnalysisResult result = runChecker(checker, HasImmutableContainerOfImmutableType.class);
        assertThat(result, areImmutable());